/* Copyright (C) 2009, 2011 Christofer Jonsson
 *
 * This file is part of FXH.
 *
 * FXH is free software: you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * FXH is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
 * License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with FXH.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef FXH_UTIL_H
#define FXH_UTIL_H

#include "fxh_global.h"
#include <stdint.h>
#include <string.h>
#include <stdlib.h>

fxh_status_t fxh_util_file_size(const char *path, uint64_t *size);
fxh_status_t fxh_util_basename(const char *path, size_t length, size_t *pos);
void* fxh_util_malloc(size_t size);
void fxh_util_free(void *mem);

#endif /* FXH_UTIL_H */
